package com.dsh.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;


@Document(collection = "user") // 对应 MongoDB 中的 users 集合，默认使用类名小写（user）
@Data
public class User {

    @Id
    private String id;
    private String name;
    private Integer age;
    private String email;
    private String createDate;
    private String address;
    private String sex;
}
